﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AccountController.cs" company="Spenta Consulting">
//   (c) Copyright 2011
// </copyright>
// <summary>
//   Defines the AccountController type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Spenta.StreetCare.MVC.Controllers
{
    using System.Web.Mvc;

    /// <summary>
    /// Defines the AccountController type
    /// </summary>
    [HandleError]
    public class AccountController : Controller
    {
        /// <summary>
        /// Logs the out.
        /// </summary>
        /// <returns>Home public page</returns>
        public ActionResult LogOut()
        {
            if (Session["StreetCareUser"] != null)
            {
                Session.Remove("StreetCareUser");
            }

            return RedirectToAction("Map", "Public");
        }
    }
}
